<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>单向数据渲染学习</title>
</head>
<body>
<div id="app">
    <h1>{{message}}</h1>
    <input type="text" v-bind:value="image.name"><br/><br/>
    <img :src="image.img_path">
</div>
<script src="vue.js"></script>
<script type="text/javascript">
    let vm = new Vue({
        el: "#app",
        data: {
            message: "Hello World",
            image: {
                name: "cat",
                img_path: "./cat.png"
            }
        }
    })
</script>
</body>
</html>